//
// Created by lymk on 2021/8/4.
//

#include "MovementComponent.h"

void MovementComponent::Update(double DeltaSeconds, GameActor *gameActor) {
    //move_cool->Update(DeltaSeconds);
    //if(move_cool->GetFlag()){
    //GMath::Vec2 dir = gameActor->GetSpeed();
    //GMath::Vec2 pos = gameActor->GetPosition();
    //gameActor->SetPosition(pos+GMath::Point(dir.X*DeltaSeconds,dir.Y*DeltaSeconds));
    //move_cool->ReSet();
    //}
}

MovementComponent::MovementComponent() {
    move_cool = new CoolUtil(0.1);
}

void MovementComponent::SetCoolTime(double cool_time) {
    move_cool->SetCoolTime(cool_time);
}
